All Questions
22 questions
4votes
2answers
110views
Custom RowSorter that sorts a Swing table containing data with unit suffixes
I would like to hear what you say about my custom RowSorter implementation. The following comparators should be used for the table columns: String, Double and Integer. The table data has postfixes and ...
4votes
1answer
527views
Single-player obstacle-avoidance space game
I was wondering what I could do to improve the gameplay of this game, as well as the graphics. I would like to use LWJGL, but the rendering library isn't important. I just need to find out ...
4votes
1answer
506views
Java Mandelbrot Set Viewer
I'm writing my own version of a Mandelbrot set generator, with pan and zoom functionality. (There's not yet a color overlay of sets generated with various beta values; the beta value is changed ...
4votes
1answer
663views
Updating the icon of every JLabel in a JLabel ArrayList
I want to update every icon of a JLabelArrayList, to its own individual icon based off of an outside ...
6votes
2answers
686views
Java algorithm to declutter rectangles
I've been working on an algorithm to declutter rectangles while keeping them as close as possible to their original location (and oriented the same way). It seems to work fine when I have less than 1,...
4votes
2answers
2kviews
Directory JTree Performance
The purpose of this short program is to: Detect all accessible local drives and USB drives List all the accessible directories for each drive which do not require administrator privileges or are ...
4votes
1answer
122views
Confidential Sign-In Sheet in Java
I was requested to make a Sign-in program for the LGBTA Center at my university. They wanted something where anyone that came by and visited could leave their name and email, but also so that no one ...
4votes
1answer
271views
A simple MP3 file arranger
I am creating a simple Mp3 Files Arranger the Project is on Github Questions: How can I optimize this app? Am I violating any OOP principle? Is it readable? How can I make it better? GUI.java ...
6votes
2answers
1kviews
Classic two-player memory game
This is a classic memory game with a points counter for the two players. The app works fine, but since this is my first project in Swing, I would appreciate the critical opinion of some expert, as I'...
6votes
3answers
3kviews
Login for desktop application
I am building a login using an API call to a URL that returns JSON data. The login works and is functional but in terms of "correctness" and "professionalism", I am looking to get input from some of ...
6votes
2answers
3kviews
"Lights off" puzzle
Lights Off is a puzzle game consisting of an \$n\times n\$ grid of lights. At the beginning of the game, some of the lights are switched on. When a light is activated, it and its four neighbors in the ...
15votes
1answer
255views
Creation of Queen Ann's Lace fractal
I've created a program which recreates the Queen Ann's Lace fractal. However, when the amount of points that are being plotted increases, the points are plotted way slower. Is there any way to make it ...
4votes
1answer
4kviews
Simple Cellular Automata (think Conway's Game of Life) simulator
Firstly, let me say that this code works, as posted. It fills a 10x10 grid with a random color (black/white) then runs a cellular automata simulation on the grid, starting or pausing when the button ...
2votes
1answer
873views
Opening contents of a file using Swing and SwingWorker class
I want to open a file contents using swing. For this I used the SwingWorker class. This application took more time (more than a minute) to load a large file (...
5votes
1answer
408views
Creating a "Produce and Consume" using Swingworkers
I am experimenting with the produce and consume concept while trying to incorporate it into my own project. I basically have two Workers in a small example I made: ...